﻿<sc:MediaApplicationPage
    x:Class="Subsonic.Pages.NowPlaying"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:sc="clr-namespace:Subsonic.Controls"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True"
    ApplicationBar="{StaticResource globalApplicationBar}">

    <!--LayoutRoot contains the root grid where all other page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <controls:Pivot Title="{StaticResource now_playing_title}">
            <controls:PivotItem DataContext="{Binding Pivots[0]}" Header="{StaticResource now_playing_queue}">
                <sc:MediaListBox x:Name="QueueListBox" ItemsSource="{Binding Items}" ItemTemplate="{StaticResource NoImageItemListBoxTemplate}"/>
            </controls:PivotItem>
            <controls:PivotItem Header="{StaticResource now_playing_current}">
                <StackPanel>
                    <Image Source="{Binding ItemImage}"></Image>
                    <TextBlock Text="{Binding Album}" Margin="0,0,0,0" Style="{StaticResource PhoneTextSubtleStyle}"/>
                    <TextBlock Text="{Binding Artist}" Margin="0,0,0,0" Style="{StaticResource PhoneTextSubtleStyle}"/>
                    <TextBlock Text="{Binding Title}" Margin="0,0,0,0" Style="{StaticResource PhoneTextSubtleStyle}"/>
                </StackPanel>
            </controls:PivotItem>
        </controls:Pivot>
    </Grid>

</sc:MediaApplicationPage>
